class LoginEntity {
  String _msg;
  int _code;
  String _sms;

  LoginEntity({String msg, int code, String sms}) {
    this._msg = msg;
    this._code = code;
    this._sms = sms;
  }

  String get msg => _msg;
  set msg(String msg) => _msg = msg;
  String get sms => _sms;
  set sms(String sms) => _sms = sms;
  int get code => _code;
  set code(int code) => _code = code;

  LoginEntity.fromJson(Map<String, dynamic> json) {
    _msg = json['msg'];
    _code = json['code'];
    _sms = json['sms'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this._msg;
    data['code'] = this._code;
    data['sms'] = this._sms;
    return data;
  }
}
